package com.javasm.mingming.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;

/**
 * @author javasm
 * @version 0.1
 * @className ServerConfig
 * @descriptioin:
 * @date 2025/1/6 15:31
 * @since jdk11
 */
@Configuration
@EnableTransactionManagement
@EnableAsync//开启异步任务注解
@EnableScheduling//启动定时任务
public class ServerConfig {
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
